package cn.com.allunion.sms.pojo;

import java.io.Serializable;
import java.util.Date;

public class Smsrecord implements Serializable {

    private static final long serialVersionUID = -6124026135496488060L;

    private String smsRecordID;

    private Date createDate;

    private String sendContent;

    private String sendNumber;

    private String sendState;

    private Date updateDate;

    private String businessRecordId;

    private String smsOperatorName;

    private String operatorMessageID;

    private String fromIP;

    /**
     * 属于的业务，不参与映射
     */
    private Smsbusiness smsBusinessRecord ;

    /**
     * 属于的运营商，不参与映射
     */
    private Smsoperator smsOperator ;

    public Smsrecord() {
        this.createDate= new Date();
        this.updateDate = new Date();
    }

    public String getSmsRecordID() {
        return smsRecordID;
    }

    public void setSmsRecordID(String smsRecordID) {
        this.smsRecordID = smsRecordID == null ? null : smsRecordID.trim();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getSendContent() {
        return sendContent;
    }

    public void setSendContent(String sendContent) {
        this.sendContent = sendContent == null ? null : sendContent.trim();
    }

    public String getSendNumber() {
        return sendNumber;
    }

    public void setSendNumber(String sendNumber) {
        this.sendNumber = sendNumber == null ? null : sendNumber.trim();
    }

    public String getSendState() {
        return sendState;
    }

    public void setSendState(String sendState) {
        this.sendState = sendState == null ? null : sendState.trim();
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getBusinessRecordId() {
        return businessRecordId;
    }

    public void setBusinessRecordId(String businessRecordId) {
        this.businessRecordId = businessRecordId == null ? null : businessRecordId.trim();
    }

    public String getSmsOperatorName() {
        return smsOperatorName;
    }

    public void setSmsOperatorName(String smsOperatorName) {
        this.smsOperatorName = smsOperatorName == null ? null : smsOperatorName.trim();
    }

    public String getOperatorMessageID() {
        return operatorMessageID;
    }

    public void setOperatorMessageID(String operatorMessageID) {
        this.operatorMessageID = operatorMessageID == null ? null : operatorMessageID.trim();
    }

    public String getFromIP() {
        return fromIP;
    }

    public void setFromIP(String fromIP) {
        this.fromIP = fromIP == null ? null : fromIP.trim();
    }


    public Smsbusiness getSmsBusinessRecord() {
        return smsBusinessRecord;
    }

    public void setSmsBusinessRecord(Smsbusiness smsBusinessRecord) {
        this.smsBusinessRecord = smsBusinessRecord;
        if (null != this.smsBusinessRecord) {
            this.businessRecordId = this.smsBusinessRecord.getSmsBusinessID();
        }
    }

    public Smsoperator getSmsOperator() {
        return smsOperator;
    }

    public void setSmsOperator(Smsoperator smsOperator) {
        this.smsOperator = smsOperator;
        if (null != this.smsOperator) {
            this.smsOperatorName = this.smsOperator.getSmsOperatorID();
        }
    }
}